package com.cn.studey.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author mjy
 * @date 2021/12/20
 * @description
 */
@Component
@ConfigurationProperties(prefix = "rocketmq.consumer")
public class RocketMqConfig {

    private String webGroup;

    private String nameServer;

    private String webTopic;

    private String webTag;

    public String getWebGroup() {
        return webGroup;
    }

    public void setWebGroup(String webGroup) {
        this.webGroup = webGroup;
    }

    public String getNameServer() {
        return nameServer;
    }

    public void setNameServer(String nameServer) {
        this.nameServer = nameServer;
    }

    public String getWebTopic() {
        return webTopic;
    }

    public void setWebTopic(String webTopic) {
        this.webTopic = webTopic;
    }

    public String getWebTag() {
        return webTag;
    }

    public void setWebTag(String webTag) {
        this.webTag = webTag;
    }

    @Override
    public String toString() {
        return "RocketMqConfig{" +
                "webGroup='" + webGroup + '\'' +
                ", nameServer='" + nameServer + '\'' +
                ", webTopic='" + webTopic + '\'' +
                ", webTag='" + webTag + '\'' +
                '}';
    }
}
